/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package app.model_package;

/**
 *
 * @author haythem
 */
public class ProjectDate {
    // must have a specified format
    //day/month/year hour:minute
    private String date ;

    public ProjectDate(String date_) {
        // compare the format of date_ using
        // regex if it is good then
        this.date = date_;
        //else message d'erreur
    }

    /**
     * it returns the date recorded in the object
     * @return : the attribute date
     */
    public String getDate(){
        return this.date;
    }

    public void changeDate(String newDate){
        // compare the formar of newDate using
        // regex if it is good then
        this.date = newDate;
        //else message d'erreur
    }

}
